home *** CD-ROM | disk | FTP | other *** search
/ CD ROM Paradise Collection 4 / CD ROM Paradise Collection 4 1995 Nov.iso / comms_w / inetv21.zip / HANGUP.SC_ / HANGUP.SC
Text File  |  1994-12-10  |  2KB  |  45 lines

  1. #
  2. #
  3. #    Internet-Connect (TM) SLIP/PPP Hangup Script Sample
  4. #
  5. # Each script line has the following general syntax
  6. #    command arg1 arg2 ...
  7. # Null line or line started with # is ignored (comment line)
  8. # Number of arguments following each command depends on the command.
  9. # Valid commands are:
  10. #    done            -end script normally
  11. #    fail            -terminate script abnormally
  12. #    goto label_name     -jump to script line with label_name
  13. #    label label_name    -label a script line
  14. #    raisedtr        -raise DTR signal
  15. #    dropdtr            -drop DTR signal, e.g. to hangup manually
  16. #    pause pause_in_secs    -short wait
  17. #    setcr [CarriageReturn_character] -default is \r
  18. #    launch application_to_be_launched [goto_if_fail]
  19. #    timeout default_timeout_in_secs
  20. #    expect "expect_string" [timeout_in_secs [label_to_go_to_if_timeout]]
  21. #    expectaddr [timeout_in_secs [label_to_go_to_if_timeout]]
  22. #    send "send_string"    -send a string to host (CR appended automatically)
  23. #    sendpass "password"    -send a password (will not write to log)
  24. #    send $variable        -prompt for variable string then send it to host
  25. #    expect $variable [timeout_in_secs [label_to_go_if_timeout]]
  26. # where $variable:
  27. #    $p (password, send only)
  28. #    $l (local IP address, expect only)
  29. #    $r (remote IP address, expect only)
  30. #    $c (any command, e.g. start SLIP, send only)
  31. #    $u (userid, send only)
  32. #
  33. # Text string must be in quotes if contains spaces, e.g
  34. #    expect "Please enter user-id"
  35. #
  36. timeout 5
  37. # set CR to blank as we don't want \r appended to +++ string
  38. setcr ""
  39. send +++
  40. expect OK 5
  41. send "ATH0\r"
  42. # restore default CR character
  43. setcr
  44. done
  45.